//
//  BaseViewController.h
//  CarLifes
//
//  Created by yu on 2017/6/15.
//  Copyright © 2017年 jpas. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RequestTool.h"
#import "User.h"


@interface BaseViewController : UIViewController

@property (nonatomic, strong) UIButton *leftBtn;
@property (nonatomic, strong) UIButton *rightBtn;
@property (nonatomic, strong) UITableView *jTableView;

@property (nonatomic, strong) User *user;

@property (nonatomic, strong) RequestTool *requestTool;

/**
 导航栏LeftItem图片

 @param name 图片名称
 @param action 点击事件
 */
- (void)setLeftImageNamed:(NSString *)name action:(SEL)action;
- (void)setLeftImageNamed:(NSString *)name title:(NSString *)title action:(SEL)action;
/**
 导航栏RightItem图片

 @param normalImage 未选中图片
 @param selectImage 选中图片
 @param action 点击事件
 */
- (void)setRightNormalImageNamed:(NSString *)normalImage selectImageNamed:(NSString *)selectImage action:(SEL)action;
- (void)setRightNormalImageNamed:(NSString *)normalImage selectImageNamed:(NSString *)selectImage title:(NSString *)title action:(SEL)action;


/**
 导航栏RightItem文字
 */
- (void)setRightItemTitle:(NSString *)title
                   action:(SEL)action;
- (void)setRightItemTitle:(NSString *)title
               titleColor:(UIColor *)color
                   action:(SEL)action;

/**
 设置默认navigationbar
 */
- (void)setDefaultNavigationBar;
- (void)setWhiteNavigationBar;

/**
 设置导航栏

 @param image <#image description#>
 @param tintColor <#tintColor description#>
 @param textColor <#textColor description#>
 @param style <#style description#>
 */
- (void)setNavigationBarBackgroundImage:(UIImage *)image
                              tintColor:(UIColor *)tintColor
                              textColor:(UIColor *)textColor
                         statusBarStyle:(UIStatusBarStyle)style;

@end

